package org.me.bean;

import java.util.ArrayList;
import java.util.List;

import android.os.Parcel;
import android.os.Parcelable;

public class InstructorData implements Parcelable {
	
	private Instructor instructor;
	private List<CourseSchedule> teachingCourseList = new ArrayList<CourseSchedule>();
	private List<Announcement> annList = new ArrayList<Announcement>();
	
	public static final String Log_Tag = "InstructorData";
	public static Class InstructorData_CLASS = new InstructorData().getClass();
	
	public InstructorData() {
		super();
	}
	
	public InstructorData(Instructor instructor,
			List<CourseSchedule> teachingCourseList, List<Announcement> annList) {
		
		super();
		this.instructor = instructor;
		this.teachingCourseList = teachingCourseList;
		this.annList = annList;
		
	}
	
	
	public Instructor getInstructor() {
		return instructor;
	}
	public void setInstructor(Instructor instructor) {
		this.instructor = instructor;
	}
	public List<CourseSchedule> getTeachingCourseList() {
		return teachingCourseList;
	}
	public void setTeachingCourseList(List<CourseSchedule> teachingCourseList) {
		this.teachingCourseList = teachingCourseList;
	}
	public List<Announcement> getAnnList() {
		return annList;
	}
	public void setAnnList(List<Announcement> annList) {
		this.annList = annList;
	}
	
	public static final Parcelable.Creator<InstructorData> CREATOR = new Parcelable.Creator<InstructorData>() {
        public InstructorData createFromParcel(Parcel in) {
            return new InstructorData(in);
        }

        public InstructorData[] newArray(int size) {
            return new InstructorData[size];
        }
    };
    
    public InstructorData(Parcel in) {
		instructor = in.readParcelable(Instructor.class.getClassLoader());
		in.readList(teachingCourseList, CourseSchedule.class.getClassLoader());
		in.readList(annList, Announcement.class.getClassLoader());
		
	}
    
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeParcelable(instructor, flags);
		dest.writeList(teachingCourseList);
		dest.writeList(annList);
		
	}
    
}
